{% extends 'AcmeMainBundle:Default:layout.html.twig' %}
{% form_theme pouzivatelForm 'AcmeMainBundle:Default:field.html.twig' %}

{% block title %}
Registrácia 
{% endblock %}

{% block content %}
<div class="article">
    <h1>Registrácia</h1>
    <form action="{{path('acme_main_registration') }}" method="POST">                 
            {{ form_errors(pouzivatelForm) }}
            {{ form_errors(pouzivatelTriedaForm) }}
            {{ form_row(pouzivatelForm.email,{'help':'janko@gmail.com'}) }}
            {{ form_row(pouzivatelForm.meno,{'help':'Janko'}) }}
            {{ form_row(pouzivatelForm.priezvisko,{'help':'Novák'}) }}
            {{ form_row(pouzivatelForm.ulica,{'help':'Jarabinková'}) }}
            {{ form_row(pouzivatelForm.cislo,{'help':'8, 9/B'}) }}
            {{ form_row(pouzivatelForm.mesto,{'help':'Banská Bystrica'}) }}
            {{ form_row(pouzivatelForm.psc,{'help':'83109'}) }}
            {{ form_row(pouzivatelTriedaForm.trieda) }}
 {#
            {{ form_row(pouzivatelSkolaForm.skola }}
 #}
            {{ form_rest(pouzivatelForm) }}
            {{ form_rest(pouzivatelTriedaForm) }}
   {#         {{ form_rest(pouzivatelSkolaForm) }} #}
            <p id="mandatory">* Povinné polia</p>
            <input type="submit" value="Zaregistruj" />            
    </form>
</div>


{% endblock %}